/**   
 * Copyright © 2021 郑心怡. All rights reserved.
 * 
 * @Title:UserRoleMapper.java 
 * @Prject: com.interesting.examsystem.user.mapper
 * @Package: com.interesting.examsystem.user.mapper
 * @author: ZhengXinyi   
 * @date: 2021-07-24
 * @version: V1.0   
 */
package com.interesting.examsystem.user.mapper;

import java.util.List;

import com.interesting.examsystem.role.model.RoleVO;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.interesting.examsystem.user.model.UserRoleDTO;
import com.interesting.examsystem.user.model.UserRoleVO;
import com.interesting.examsystem.user.model.UserRoleDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @ClassName: UserRoleMapper
 * @Description:  Mapper 接口
 * @author: ZhengXinyi
 * @date: 2021-07-24
 */
public interface UserRoleMapper extends BaseMapper<UserRoleDO> {
	/**
	 * @Title: selectPageVo
	 * @param page
	 * @param userRoleDto
	 * @return_type: Page<UserRoleVO>
	 * @Description: 分页查询 
	 */
	Page<UserRoleVO> selectPageVo(Page<UserRoleDTO> page, @Param("param") UserRoleDTO userRoleDto);
	
	/**
	 * @Title: insertBatch 
	 * @Description: 批量插入
	 * @param userRoleVos
	 */
	void insertBatch(List<UserRoleVO> userRoleVos);

	/**
	 * 根据用户获取角色表
	 *
	 * @param id
	 * @return
	 */
    List<RoleVO> selectListByUser(String id);
}
